/* ==================== 案例页面样式 ==================== */

.cases-hero {
  background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
  color: white;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -24px -24px 48px -24px;
  padding: 40px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cases-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(96, 165, 250, 0.15) 0%, transparent 50%);
}

.cases-hero .hero-content {
  max-width: 900px;
  width: 100%;
  position: relative;
  z-index: 1;
  text-align: center;
}

.cases-hero .hero-title {
  font-size: 56px;
  font-weight: 700;
  margin: 0 0 48px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  line-height: 1.2;
}

.cases-hero .title-icon {
  font-size: 64px;
}

.cases-hero .hero-subtitle {
  display: none;
}

.cases-hero .hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.cases-hero .stat-item {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.cases-hero .stat-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.cases-hero .stat-number {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}

.cases-hero .stat-label {
  font-size: 14px;
  opacity: 0.9;
  display: block;
}

/* 案例区域 */
.cases-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
  margin: 40px 0;
}

.case-card {
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px;
  transition: all 0.4s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.case-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1e40af, #3b82f6);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.case-card:hover::before {
  transform: scaleX(1);
}

.case-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(30, 64, 175, 0.2);
  border-color: #3b82f6;
}

.case-card .case-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.case-card .case-icon {
  font-size: 56px;
  margin-bottom: 20px;
  line-height: 1;
}

.case-card .case-title {
  font-size: 22px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 16px 0;
  line-height: 1.4;
}

.case-card .case-summary {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.7;
  margin: 0 0 20px 0;
}

.case-card .case-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  flex-grow: 1;
}

.case-card .case-highlights li {
  font-size: 14px;
  color: #4b5563;
  line-height: 2;
  padding-left: 24px;
  position: relative;
}

.case-card .case-highlights li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
  font-size: 16px;
}

.case-card .card-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.case-card .view-detail-btn {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  color: white !important;
  text-decoration: none !important;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.case-card .view-detail-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 64, 175, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .cases-hero {
    min-height: 50vh;
  }
  
  .cases-hero .hero-title {
    font-size: 36px;
    margin-bottom: 32px;
  }
  
  .cases-hero .title-icon {
    font-size: 42px;
  }
  
  .cases-hero .hero-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .cases-hero .stat-number {
    font-size: 28px;
  }
  
  .cases-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* 暗色模式适配 */
.dark .case-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-color: #334155;
}

.dark .case-card .case-title {
  color: #f9fafb;
}

.dark .case-card .case-summary {
  color: #94a3b8;
}

.dark .case-card .case-highlights li {
  color: #cbd5e1;
}
